package com.company.demo1;

public class B extends A {
    @Override
    void foo1() {
        System.out.println("B foo1()");
    }


    @Deprecated
    public void foo2() {
        System.out.println("B foo2()");
    }
}